import { ElNotification } from 'element-plus'

// 创建通知
export function notify({ message = '操作成功', title = '温馨提示', duration = 1000, type = 'success' } = {}, otherOptions = {}) {
	ElNotification({
		message, title, duration, type,
		...otherOptions
	})
}

export function notifyError({ message = '', title = '温馨提示', duration = 2000, type = 'error' } = {}, otherOptions = {}) {
	ElNotification({
		message, title, duration, type,
		...otherOptions
	})
}
